package com.fmx.BookStore.vo;

import com.fmx.BookStore.domain.Permission;

import java.util.List;

/**
 * 接受返回用户参数
 */
public class UserRequest {
    private String userName;
    private String password;
    private String token;

    private Long roleId;

    private List<Permission> permissionList;

    public UserRequest() {
    }

    public UserRequest(String userName, String password, String token, Long roleId, List<Permission> permissionList) {
        this.userName = userName;
        this.password = password;
        this.token = token;
        this.roleId = roleId;
        this.permissionList = permissionList;
    }

    public List<Permission> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<Permission> permissionList) {
        this.permissionList = permissionList;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserRequest{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", token='" + token + '\'' +
                ", roleId=" + roleId +
                ", permissionList=" + permissionList +
                '}';
    }
}
